package com.erp.erp_dao.Blueprint;


import com.erp.erp_entitys.Blueprint.BlueprintContentFile;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BlueprintContentFileMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BlueprintContentFile record);

    int insertSelective(BlueprintContentFile record);

    BlueprintContentFile selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BlueprintContentFile record);

    int updateByPrimaryKey(BlueprintContentFile record);

    /**
     * 根据主id，明细id 获取附件集合
     * @return
     */
    List<BlueprintContentFile> findContentFileByParam(@Param("blueprintId") Integer blueprintId,
                                                      @Param("detailId") Integer detailId);

    int deleteByIds(@Param("ids") List<Integer> ids);
}